package com.liujun.spring4.demo.annotation.aspect.targerclasspointcut.withinfunction;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;

/**
 * 通过类匹配模式声明切点，within()函数定义的连接点是针对目标类而言的，而蜚针对运行期而言的，这一点和execution就相同的
 *
 * @author liujun
 * @version 0.0.1
 * @date 2018/10/01
 */
@Aspect
public class WithInFunctionAspect {

  @AfterReturning("within(com.liujun.spring4.demo.annotation.aspect.baseClass.NaiveWaiter+)")
  public void withinAspectExec() {

    System.out.println("WithInFunctionAspect withinAspectExec() execution!");

    System.out.println("----------------");

    System.out.println();
  }
}
